import type { VxeGridProps } from '#/adapter/vxe-table'
import { $t } from '@vben/locales'

// 列表表头
export const columns: VxeGridProps['columns'] = [
    { align: 'center', title: '', type: 'checkbox', width: 80 },
    { field: 'name', title: $t('page.system.children.dictionary.children.form.name') },
    {
        field: 'code',
        title: $t('page.system.children.dictionary.children.form.code'),
        cellRender: { name: 'CopyText' }
    },
    { field: 'note', title: $t('common.remark') },
    {
        field: 'action',
        fixed: 'right',
        slots: { default: 'action' },
        title: $t('common.action'),
        width: 120
    }
]

export const formSchema = [
    {
        fieldName: 'name',
        label: $t('page.system.children.dictionary.children.form.name'),
        component: 'Input'
    }
]
